# Copyright (c) 2014 by Michael Zahniser and Nate Graham
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.


mission "Deep Mystery Cube [0]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes deep
	destination
		distance 7 16
		government Republic "Free Worlds" Syndicate Neutral Hai Quarg
	on accept
		dialog "You pick up the mystery package in an unmarked and uninhabited warehouse. It is a small black cube about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind. Odd."
	on complete
		payment 5000 1000
		dialog `As instructed, you leave the mystery cube by the side of the road a few miles away from the spaceport. "This has to be legal, or they couldn't post it to the job board," you remind yourself as you collect the payment of <payment>.`
	npc
		system
			distance 6 9
		personality nemesis disables waiting
		government "Bounty Hunter"
		fleet "Bounty Hunters"


mission "Deep Mystery Cube [1]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes deep
	destination
		distance 9 20
		government Republic "Free Worlds" Syndicate Neutral Hai Quarg
	on accept
		dialog "You pick up the mystery package in an unmarked and uninhabited warehouse. It is a small black cube about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind. Odd."
	on complete
		payment 5000 1000
		dialog `As instructed, you leave the mystery cube behind a rickety-looking wooden tower. "This has to be legal, or they couldn't post it to the job board," you remind yourself as you collect the payment of <payment>.`
	npc
		system
			distance 6 9
		personality nemesis disables waiting
		government "Bounty Hunter"
		fleet "Bounty Hunters"


mission "Deep Mystery Cube [2]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes deep
	destination
		distance 9 20
		government Republic "Free Worlds" Syndicate Neutral Hai Quarg
	on accept
		dialog "You pick up the mystery package in an unmarked and uninhabited warehouse. It is a small black cube about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind. Odd."
	on complete
		payment 5000 1000
		dialog `As instructed, you bury the cube out in the middle of nowhere before landing in the spaceport. "This has to be legal, or they couldn't post it to the job board," you remind yourself as you collect the payment of <payment>.`
	npc
		system
			distance 6 9
		personality nemesis disables waiting
		government "Bounty Hunter"
		fleet "Bounty Hunters"


mission "Deep Mystery Cube [3]"
	name "Mystery delivery to <planet>"
	job
	repeat
	description "Deliver a package to <destination>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes deep
	destination
		distance 9 20
		government Republic "Free Worlds" Syndicate Neutral Hai Quarg
	on accept
		dialog "You pick up the mystery package in an unmarked and uninhabited warehouse. It is a small black cube about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind. Odd."
	on complete
		payment 5000 1000
		dialog `As instructed, you hand the cube to the first beggar woman you see planetside. She accepts it without a word. "This has to be legal, or they couldn't post it to the job board," you remind yourself as you collect the payment of <payment>.`
	npc
		system
			distance 6 9
		personality nemesis disables waiting
		government "Bounty Hunter"
		fleet "Bounty Hunters"


mission "Mystery retrieval"
	job
	repeat
	description "Retrieve a package from <stopovers>. Payment is <payment>."
	cargo "mystery package" 1
	to offer
		random < 10
		"combat rating" > 35
	source
		attributes deep
	stopover
		distance 9 20
		government Republic "Free Worlds" Syndicate Neutral Hai Quarg
	on stopover
		dialog "As instructed, you open a storage locker near your landing site and pick up the mystery package: a small black cube about two centimeters to a side, surprisingly heavy for its size, with no markings of any kind. Odd."
	on complete
		payment 5000 1000
		dialog `You drop off the cube at a warehouse, as instructed. Nobody comes around to collect it, but nonetheless your bank account immediately notifies you that the agreed-upon payment of <payment> has been deposited. You wonder how they knew.`
	npc
		system
			distance 10 17
		personality nemesis disables waiting
		government "Bounty Hunter"
		fleet "Bounty Hunters"


mission "Transport scientists"
	name "Transport scientists"
	description "A team of <bunks> scientists needs some research notes analyzed at the facility on <stopovers>. Take the scientists there and then return them to <planet> for <payment>."
	job
	repeat
	to offer
		random < 15
	passengers 5 16
	source
		attributes deep
	stopover
		attributes research
		distance 2 50
	on stopover
		dialog "The scientists have been giddily discussing the results of their research during the entire trip. You're happy for a bit of peace and quiet as they make tracks for a prominent research lab to have the results analyzed. You prepare for the return journey to <planet>."
	on complete
		dialog "You bid goodbye to the scientists and accept your payment of <payment>."
		payment
		payment 30000


mission "Escort science vessel"
	description "The crew of the science vessel <npc> requests an escort to <stopovers> where they plan to study some unusual phenomena. Escort them there and then return them to <planet> for <payment>."
	job
	repeat
	to offer
		random < 15
		"combat rating" > 50
	source
		attributes research
	stopover
		attributes quarg pirate volcanic frontier "dirt belt" north south
		distance 6 50
	npc
		system
			distance 2 3
		government Pirate
		personality nemesis waiting plunders
		fleet "pirate raid"
	npc accompany save
		government Merchant
		personality escort timid
		fleet
			names "deep"
			variant
				"Scout"
			variant
				"Bounder"
	on stopover
		dialog "The <npc> lands alongside you and teams of scientists wearing crisp white lab coats and serious-looking boots and gloves descend on the test site with all manner of exotic equipment. As they take their measurements, you prepare for the return journey to <planet>."
	on visit
		dialog "You have reached <planet>, but you can't complete this mission until the <npc> has visited <stopovers> with you and then joined you here."
	on complete
		dialog "You bid goodbye to the captain of the <npc> and accept your payment of <payment>."
		payment
		payment 60000


mission "Record academic conference"
	job
	repeat
	description "Record an academic conference on <destination> for professors who cannot attend. Credentials and recording equipment will be provided. Payment is <payment>."
	cargo "recording equipment" 1
	to offer
		random < 15
	source
		attributes deep
	destination
		attributes research quarg rich paradise
		distance 4 10
	on complete
		dialog "You touch down and make your way to the conference hall at a grand university. The provided credentials gain you access and you set up the recording equipment at the back of the room. The panelists are electrifying, speaking eloquently on a variety of cutting-edge topics in the sciences and humanities. The experience leaves you feeling remarkably optimistic about the future of humanity here in the stars. You transmit the video to your contact on <origin> and receive your payment of <payment>."
		payment 5000 1000
